<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>

<body>
<?php
$uploaddir=__DIR__."\\Assignments\\";
$uploadfile = $uploaddir.basename($_FILES['fAssignment']['name']);

 echo '<pre>';
 echo ($uploaddir."</br>".$uploadfile);
 if (!(is_writable($uploaddir)))
{
	die("Too bad");
}
if (move_uploaded_file($_FILES['fAssignment']['tmp_name'], $uploadfile)) {
    echo "File is valid, and was successfully uploaded.\n";
} else {
    echo "Possible file upload attack!\n";
}

echo 'Here is some more debugging info:';
print_r($_FILES);
print "</pre>";
?>
</body>
</html>